package com.cskaoyan.mapper;

import com.cskaoyan.model.vo.ChildrenVO;
import com.cskaoyan.model.vo.CChildrenVO;
import com.cskaoyan.model.vo.SystemPermissionsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ResourceTableMapper {

    List<SystemPermissionsVO> select();

    List<ChildrenVO> selectByCid(Integer pid);

    Integer selectPidByIdAndCidIsNull(String id);

    Integer selectPidByIdAndCid(String id, Integer pid1);

    List<Integer> selectPidByCid(Integer cid);

    CChildrenVO selectApiByRid(@Param("rid") Integer integer);

}
